<%= label_tag "#{prefix}[calculator_attributes][preferred_base_percent]",
  Spree.t(:base_percent) %>
<%= preference_field_tag(
  "#{prefix}[calculator_attributes][preferred_base_percent]",
  calculator.preferred_base_percent,
  type: calculator.preference_type(:base_percent)) %>

<%= label_tag nil, Spree.t(:tiers) %>
<%= content_tag :div, nil, class: "js-tiers", data: {
  'original-tiers' => Hash[calculator.preferred_tiers.sort],
  'form-prefix' => prefix,
  'calculator' => 'tiered_percent'
} %>
<button class="button js-add-tier"><%= Spree.t('actions.add') %></button>
